<?php
require './include/global.php';
if(!$_SESSION[uname]||$_SESSION['status']=="Expired"){
require_once 'include/train_db.php';
}

//print_r($_SESSION);
$smarty->compile_check = true;
$smarty->display('header.tpl');


$sql = "SELECT * FROM pa_announce WHERE an_id = 2";
$arr = $DB->fetch_one_array($sql);

$smarty->assign('title',$arr[an_title]);
$smarty->assign('content',$arr[an_content]);


if($_SESSION[uname]&&$_SESSION['status']!="Expired"){
require './include/all_left.php';
$smarty->display('allleft.tpl');
}else{
$smarty->display('left.tpl');
}

$smarty->display('announce.tpl');



if($_SESSION[uname]&&$_SESSION['status']!="Expired"){
require_once './include/advisory_db.php';
$smarty->display('allright.tpl');
}else{
$smarty->display('right.tpl');
}
$smarty->display('footer.tpl');
?>
